include $(HOME)/workspace/rules.mk
OBJS=config.o test.o
TARGET=libconfig.a test

all: $(TARGET)

libconfig.a: config.o
	ar rv $(LIBPATH)/$@ $^

test: test.o config.o
	$(CXX) $(CFLAGS) -o $@ $^ $(LIBS)

$(OBJS): %.o: %.cpp
	$(CXX) -c $(CFLAGS) $(INCLUDES) -o $@ $<

clean :
	rm -rf $(OBJS) $(TARGET)
